home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.0 / PInterfaces / TerminalTools.p < prev    next >
Encoding:
Text File  |  1995-04-18  |  3.2 KB  |  153 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        TerminalTools.p
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT TerminalTools;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __TERMINALTOOLS__}
  30. {$SETC __TERMINALTOOLS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC TerminalToolsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __DIALOGS__}
  38. {$I Dialogs.p}
  39. {$ENDC}
  40. {    Errors.p                                                    }
  41. {        ConditionalMacros.p                                        }
  42. {    Memory.p                                                    }
  43. {        Types.p                                                    }
  44. {        MixedMode.p                                                }
  45. {    Windows.p                                                    }
  46. {        Quickdraw.p                                                }
  47. {            QuickdrawText.p                                        }
  48. {        Events.p                                                }
  49. {            OSUtils.p                                            }
  50. {        Controls.p                                                }
  51. {            Menus.p                                                }
  52. {    TextEdit.p                                                    }
  53.  
  54. {$IFC UNDEFINED __TERMINALS__}
  55. {$I Terminals.p}
  56. {$ENDC}
  57. {    CTBUtilities.p                                                }
  58. {        StandardFile.p                                            }
  59. {            Files.p                                                }
  60. {        AppleTalk.p                                                }
  61. {    Connections.p                                                }
  62.  
  63. {$PUSH}
  64. {$ALIGN MAC68K}
  65. {$LibExport+}
  66.  
  67. CONST
  68.     tdefType                    = 'tdef';
  69.     tvalType                    = 'tval';
  70.     tsetType                    = 'tset';
  71.     tlocType                    = 'tloc';
  72.     tscrType                    = 'tscr';
  73.     tbndType                    = 'tbnd';
  74.     tverType                    = 'vers';
  75. { messages }
  76.     tmInitMsg                    = 0;
  77.     tmDisposeMsg                = 1;
  78.     tmSuspendMsg                = 2;
  79.     tmResumeMsg                    = 3;
  80.     tmMenuMsg                    = 4;
  81.     tmEventMsg                    = 5;
  82.     tmActivateMsg                = 6;
  83.     tmDeactivateMsg                = 7;
  84.     tmGetErrorStringMsg            = 8;
  85.     tmIdleMsg                    = 50;
  86.     tmResetMsg                    = 51;
  87.     tmKeyMsg                    = 100;
  88.     tmStreamMsg                    = 101;
  89.     tmResizeMsg                    = 102;
  90.     tmUpdateMsg                    = 103;
  91.     tmClickMsg                    = 104;
  92.     tmGetSelectionMsg            = 105;
  93.     tmSetSelectionMsg            = 106;
  94.     tmScrollMsg                    = 107;
  95.     tmClearMsg                    = 108;
  96.  
  97.     tmGetLineMsg                = 109;
  98.     tmPaintMsg                    = 110;
  99.     tmCursorMsg                    = 111;
  100.     tmGetEnvironsMsg            = 112;
  101.     tmDoTermKeyMsg                = 113;
  102.     tmCountTermKeysMsg            = 114;
  103.     tmGetIndTermKeyMsg            = 115;
  104. { messages for validate DefProc    }
  105.     tmValidateMsg                = 0;
  106.     tmDefaultMsg                = 1;
  107. { messages for Setup DefProc    }
  108.     tmSpreflightMsg                = 0;
  109.     tmSsetupMsg                    = 1;
  110.     tmSitemMsg                    = 2;
  111.     tmSfilterMsg                = 3;
  112.     tmScleanupMsg                = 4;
  113. { messages for scripting defProc    }
  114.     tmMgetMsg                    = 0;
  115.     tmMsetMsg                    = 1;
  116. { messages for localization defProc  }
  117.     tmL2English                    = 0;
  118.     tmL2Intl                    = 1;
  119.  
  120.     
  121. TYPE
  122.     TMSearchBlockPtr = ^TMSearchBlock;
  123.  
  124.     TMSearchBlock = RECORD
  125.         theString:                StringHandle;
  126.         where:                    Rect;
  127.         searchType:                TMSearchTypes;
  128.         callBack:                TerminalSearchCallBackUPP;
  129.         refnum:                    INTEGER;
  130.         next:                    TMSearchBlockPtr;
  131.     END;
  132.  
  133.     TMSetupPtr = ^TMSetupStruct;
  134.  
  135.     TMSetupStruct = RECORD
  136.         theDialog:                DialogPtr;
  137.         count:                    INTEGER;
  138.         theConfig:                Ptr;
  139.         procID:                    INTEGER;                                { procID of the tool }
  140.     END;
  141.  
  142.  
  143. {$ALIGN RESET}
  144. {$POP}
  145.  
  146. {$SETC UsingIncludes := TerminalToolsIncludes}
  147.  
  148. {$ENDC} {__TERMINALTOOLS__}
  149.  
  150. {$IFC NOT UsingIncludes}
  151.  END.
  152. {$ENDC}
  153.